package com.geekgo.core.listener;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author HeHaoyang
 * @version 2016/6/30 11:04
 */
public class ServerListener implements ServletContextListener {

    protected Logger logger = LogManager.getLogger(this.getClass());

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        logger.info("=================================");
        logger.info("系统[{}]启动成功!!!", servletContextEvent.getServletContext().getServletContextName());
        logger.info("=================================");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
